package com.design.structure.facade.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.structure.facade.cainiao
 * @ClassName: ShapeMaker
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/8 0008 22:04
 */
// 步骤3
public class ShapeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
